﻿using System;

namespace Developer.Core.FrameWork.RegisterCenter.Options
{
    /// <summary>
    /// 服务注册配置选项
    /// </summary>
    public class ServiceRegisterOptions
    {
        /// <summary>
        /// 默认配置
        /// </summary>
        public ServiceRegisterOptions()
        {
            this.ServiceId = Guid.NewGuid().ToString();
            this.RegisterAddress = "http://localhost:8500";
            this.HealthCheckAddress = "/HealthCheck";
        }

        /// <summary>
        /// 服务Id
        /// </summary>
        public string ServiceId { get; set; }

        /// <summary>
        /// 服务名称
        /// </summary>
        public string ServiceName { get; set; }

        /// <summary>
        /// 服务地址
        /// </summary>
        public string ServiceAddress { get; set; }

        /// <summary>
        /// 服务版本
        /// </summary>
        public string[] ServiceTags { get; set; }

        /// <summary>
        /// 注册地址
        /// </summary>
        public string RegisterAddress { get; set; }

        /// <summary>
        /// 健康检查地址
        /// </summary>
        public string HealthCheckAddress { get; set; }
    }
}
